package com.easy.mapper;

import com.easy.bean.Review;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReviewDao {
    int add(@Param("param") Review review);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Review review);
    Review one(@Param("id") Integer id);
    List<Review> all(@Param("param") Review review);
    int pageCount(@Param("param") Review review);
    List<Review> page(@Param("page") Page page, @Param("param") Review review);

    List<Review> pageWithDetails(@Param("page") Page page, @Param("param") Review review);
    int pageCountWithDetails(@Param("param") Review review);
}
